<?php
class Sms{
	private static $account='wzztou';
	private static $password='000111';
	public static function sendMsg($mobile,$code){
		$url='http://www.smswst.com/api/httpapi.aspx';
		$data['action']='send';
		$data['account']=Sms::$account;
		$data['password']=Sms::$password;
		$data['mobile']=$mobile;
		$data['content']="丝薇发型设计沙龙，开通微信会员卡，验证码:{$code}。【英泰】";
		$data['sendTime']='';
		$data['AddSign']='N';
		$xml=xml_to_object(curl_get($url,$data));
		if(isset($xml->taskID)){
			return true;
		}else{
			return false;
		}
	}
}